package com.jsyh.maidu.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Liang on 2015/9/17.
 * <p/>
 * 商品信息 model
 */
public class GoodsInfoModel2 extends BaseModel {

    public GoodsInfo data;

    public class GoodsInfo {

        private GoodsDetail goods_detail;
        private String supplier_id;
        private List<Rank> rank_price;
        private Params params;
        private List<Attribute> attribute;
        private String attribute_title;

        public GoodsDetail getGoods_detail() {
            return goods_detail;
        }

        public void setGoods_detail(GoodsDetail goods_detail) {
            this.goods_detail = goods_detail;
        }

        public String getSupplier_id() {
            return supplier_id;
        }

        public void setSupplier_id(String supplier_id) {
            this.supplier_id = supplier_id;
        }

        public List<Rank> getRank_price() {
            return rank_price;
        }

        public void setRank_price(List<Rank> rank_price) {
            this.rank_price = rank_price;
        }

        public Params getParams() {
            return params;
        }

        public void setParams(Params params) {
            this.params = params;
        }

        public List<Attribute> getAttribute() {
            return attribute;
        }

        public void setAttribute(List<Attribute> attribute) {
            this.attribute = attribute;
        }

        public String getAttribute_title() {
            return attribute_title;
        }

        public void setAttribute_title(String attribute_title) {
            this.attribute_title = attribute_title;
        }
    }

    public GoodsInfo getData() {
        return data;
    }

    public void setData(GoodsInfo data) {
        this.data = data;
    }

    public class Attribute {
        public String attr_name;
        public String attr_id;
        public List<Attr_Value> attr_value;

        public String getAttr_name() {
            return attr_name;
        }

        public void setAttr_name(String attr_name) {
            this.attr_name = attr_name;
        }

        public String getAttr_id() {
            return attr_id;
        }

        public void setAttr_id(String attr_id) {
            this.attr_id = attr_id;
        }

        public List<Attr_Value> getAttr_value() {
            return attr_value;
        }

        public void setAttr_value(List<Attr_Value> attr_value) {
            this.attr_value = attr_value;
        }

        public class Attr_Value {
            public String attr_value_id;
            public String attr_value_name;
            public String attr_value_price;
            public String default1;

            public String getAttr_value_id() {
                return attr_value_id;
            }

            public void setAttr_value_id(String attr_value_id) {
                this.attr_value_id = attr_value_id;
            }

            public String getAttr_value_name() {
                return attr_value_name;
            }

            public void setAttr_value_name(String attr_value_name) {
                this.attr_value_name = attr_value_name;
            }

            public String getAttr_value_price() {
                return attr_value_price;
            }

            public void setAttr_value_price(String attr_value_price) {
                this.attr_value_price = attr_value_price;
            }

            public String getDefaults() {
                return default1;
            }

            public void setDefaults(String defaults) {
                this.default1 = defaults;
            }
        }
    }

    public class Params implements Serializable {
        /**
         * "attr_name_id": "189",
         * "attr_name": "屏幕大小",
         * "attr_value_id": "216",
         * "attr_value": "2.0英寸"
         */

        private Base base;
        private List<Other> other;

        public Base getBase() {
            return base;
        }

        public void setBase(Base base) {
            this.base = base;
        }

        public List<Other> getOther() {
            return other;
        }

        public void setOther(List<Other> other) {
            this.other = other;
        }
    }


    public class Base {


        private String brand_name;
        private String goods_name;
        private String goods_sn;
        private String goods_number;
        private String goods_weight;
        private String add_time;

        public String getBrand_name() {
            return brand_name;
        }

        public void setBrand_name(String brand_name) {
            this.brand_name = brand_name;
        }

        public String getGoods_name() {
            return goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getGoods_sn() {
            return goods_sn;
        }

        public void setGoods_sn(String goods_sn) {
            this.goods_sn = goods_sn;
        }

        public String getGoods_number() {
            return goods_number;
        }

        public void setGoods_number(String goods_number) {
            this.goods_number = goods_number;
        }

        public String getGoods_weight() {
            return goods_weight;
        }

        public void setGoods_weight(String goods_weight) {
            this.goods_weight = goods_weight;
        }

        public String getAdd_time() {
            return add_time;
        }

        public void setAdd_time(String add_time) {
            this.add_time = add_time;
        }
    }

    public class Other{
        public String attr_name_id;
        public String attr_name;
        public String attr_value_id;
        public String attr_value;

        public String getAttr_name_id() {
            return attr_name_id;
        }

        public void setAttr_name_id(String attr_name_id) {
            this.attr_name_id = attr_name_id;
        }

        public String getAttr_name() {
            return attr_name;
        }

        public void setAttr_name(String attr_name) {
            this.attr_name = attr_name;
        }

        public String getAttr_value_id() {
            return attr_value_id;
        }

        public void setAttr_value_id(String attr_value_id) {
            this.attr_value_id = attr_value_id;
        }

        public String getAttr_value() {
            return attr_value;
        }

        public void setAttr_value(String attr_value) {
            this.attr_value = attr_value;
        }
    }

}
